<?php
namespace Home\Model;
use Think\Model\RelationModel;
class CommentRelationModel extends RelationModel{
   protected $tableName='comment';

   protected $_link=array(
     'user'=>array(
        'mapping_type'=>MANY_TO_MANY,
        // 'mapping_name'=>'id',
         'foreign_key'=>'uid',
       
     	)

   	);

  
}



?>